package com.arges.web.dao;

import org.springframework.stereotype.Repository;

import com.arges.web.domain.pojo.Work;

/**
 * 统一用户管理dao
 *
 * @author arges
 */
@Repository
public class WorkDao extends GenericDao<Work, Long>
{

	public final static String TABLE_NAME = "WORK";

	public Work getByEno(String eno)
	{
		String hql = "from Work w where w.eno=?";
		return (Work) getSession().createQuery(hql).setParameter(0, eno).uniqueResult();
	}

}
